#!-*- encoding:utf8 -*-
from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Strategy(models.Model):
    name = models.CharField(max_length=50)
    tpl = models.CharField(max_length=20)
    #min = models.FloatField()
    #max = models.FloatField()
    value = models.CharField(max_length=255)   
    handle = models.CharField(max_length=255)  #目前设置一个模版，一个策略
    detail = models.CharField(max_length=200)

    def __unicode__(self):
        return "%s " % (self.name)

    def __str__(self):
        return "%s " % (self.name)

class Tpl(models.Model):
    name = models.CharField(max_length=20)

    def __unicode__(self):
        return "%s " % (self.name)

    def __str__(self):
        return "%s " % (self.name)
